﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap.Configuration.DSL;
using Reports;
using StructureMap;

namespace DI
{
    public class GatewayRegistry : Registry
    {
        public GatewayRegistry()
        {
            Scan(x =>
            {
                x.Assembly("Insurance.Gateways");
                x.Include(t => !t.IsAbstract);
                x.WithDefaultConventions().OnAddedPluginTypes(c => c.Singleton());
            });
        }
    }
}
